﻿<Window 
        x:Class="ArmA_Launcher.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:tb="http://www.hardcodet.net/taskbar"
        xmlns:local="clr-namespace:ArmA_Launcher" Height="350" Width="525" ResizeMode="CanMinimize" WindowStyle="ThreeDBorderWindow" WindowStartupLocation="CenterScreen" Title="ArmA Launcher" ShowInTaskbar="False">
    <Grid>
        <Grid.Resources>
            <local:ShowMessageCommand
                x:Key="MessageCommand" />
            <Style x:Key="Flat">
                <Setter Property="Control.Background" Value="{x:Null}" />
                <Setter Property="Control.BorderBrush" Value="{x:Null}" />
                <Style.Triggers>
                    <Trigger Property="Control.IsMouseOver" Value="True">
                        <Setter Property="Control.Background" Value="{x:Null}" />
                        <Setter Property="Control.BorderBrush" Value="{x:Null}" />
                        <Setter Property="Control.FontWeight" Value="Normal" />
                    </Trigger>
                    <Trigger Property="Control.IsFocused" Value="True">
                        <Setter Property="Control.FontWeight" Value="Normal" />
                    </Trigger>
                </Style.Triggers>
            </Style>
        </Grid.Resources>

        <tb:TaskbarIcon
                          IconSource="/Icons/ATL.ico"
                          ToolTipText="ArmA Launcher"
                          LeftClickCommand="{StaticResource MessageCommand}"
                          LeftClickCommandParameter="single_click."
      
                          DoubleClickCommand="{StaticResource MessageCommand}"
                          DoubleClickCommandParameter="double_click" >

            <tb:TaskbarIcon.TrayPopup>
                <Border
                  Background="White"
                  BorderBrush="Black"
                  BorderThickness="2"
                  CornerRadius="4"
                  Width="300"
                  MaxWidth="500"
                  Height="auto">
                    <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
                        <Rectangle Width="245" Height="5" Fill="White" />
                        <DockPanel Margin="0,5,0,0">
                            <RadioButton DockPanel.Dock="Left" Margin="1,4,0,0"/>
                            <Button
                                Style="{StaticResource Flat}"
                                Content="@UOCBA_A3;@ADF;@TRC;@ACRE;@JayArma3Lib"
                                HorizontalAlignment="Center"
                                VerticalAlignment="Center"
                                Command="{Binding LaunchCommand}"
                                Tag="@TRC">
                            </Button>
                        </DockPanel>
                        <DockPanel Margin="0,5,0,0">
                            <RadioButton DockPanel.Dock="Left" Margin="1,4,0,0"/>
                            <Button
                                Style="{StaticResource Flat}"
                                Content="@UOCBA_A3;@ADF;@TRC;@ACRE;@JayArma3Lib"
                                HorizontalAlignment="Center"
                                VerticalAlignment="Center"
                                Command="{Binding LaunchCommand}"
                                Tag="@TRC">
                            </Button>
                        </DockPanel>
                        <DockPanel Margin="0,5,0,0">
                            <RadioButton DockPanel.Dock="Left" Margin="1,4,0,0"/>
                            <Button
                                Style="{StaticResource Flat}"
                                Content="@UOCBA_A3;@ADF;@TRC;@ACRE;@JayArma3Lib"
                                HorizontalAlignment="Center"
                                VerticalAlignment="Center"
                                Command="{Binding LaunchCommand}"
                                Tag="@TRC">
                            </Button>
                        </DockPanel>
                        <Rectangle Width="245" Height="10" Fill="White" />
                    </StackPanel>
                </Border>
            </tb:TaskbarIcon.TrayPopup>
        </tb:TaskbarIcon>
    </Grid>
</Window>
